Skip to main content

User Tables

The users_changelog and users_latest tables stores the data of all users, including user type, user details and roles assigned to them.


🔹 Standard Columns​

Column NameData TypeNullableDescription
document_nameSTRINGYESFirestore document path reference
document_event_idSTRINGYESUnique identifier for the document event
document_timestampTIMESTAMPYESTimestamp of the document modification/creation
document_operationSTRINGYESType of document operation (e.g., INSERT, UPDATE, DELETE)
document_idSTRINGYESUnique document ID in Firestore
accountObjectIDSTRINGYESObject ID of the associated account
activatedBOOLYESWhether the account or entity is activated
companySTRINGYESName of the company
companyIdSTRINGYESUnique ID of the company
contact.emailSTRINGYESContact email address
createdTimeStampINT64YESCreation timestamp in epoch format
customerCountINT64YESNumber of customers
defaultPageSTRINGYESDefault landing page
enabledBOOLYESWhether the entity is enabled
firstnameSTRINGYESFirst name of the user
invitedAtINT64YESInvitation timestamp in epoch format
isAdminBOOLYESWhether the user has admin privileges
lastUpdatedINT64YESLast update timestamp in epoch format
lastnameSTRINGYESLast name of the user
mobileNumberSTRINGYESUser's mobile number
objectIDSTRINGYESUnique object ID
isSuperAdminBOOLYESWhether the user is a super admin
lastLoggedInDateTime._secondsINT64YESLast login timestamp (seconds)
lastLoggedInDateTime._nanosecondsINT64YESLast login timestamp (nanoseconds)
serviceUnitDefaultObjectIDSTRINGYESDefault service unit object ID
serviceUnitNameSTRINGYESName of the service unit
serviceUnitObjectIDSTRINGYESObject ID of the service unit
sourceSTRINGYESSource system or origin
status.labelSTRINGYESLabel of the status
status.valueSTRINGYESValue of the status
supplierCreationTypeSTRINGYESType of supplier creation
suspendTimestampAfter._secondsINT64YESSuspension timestamp (seconds)
suspendTimestampAfter._nanosecondsINT64YESSuspension timestamp (nanoseconds)
suspendTimestampAfterEpochINT64YESSuspension timestamp in epoch format
terminatedTimeStamp._secondsINT64YESTermination timestamp (seconds)
terminatedTimeStamp._nanosecondsINT64YESTermination timestamp (nanoseconds)
allowSwitchingBOOLYESWhether switching is allowed
departmentSTRINGYESDepartment name

🔸 Array Columns​

Array of STRUCT

assignedRoles​

Column NameData TypeNullableDescription
roleIdSTRINGYESUnique id of the role
labelSTRINGYESLabel for the role

Array of STRING

role​

Holds list of roles assigned to the user. It is not nullable